package com.cwm.test.decorator.v2;


/**
* 创建鸡蛋装饰者类EggDecorator，
*/
public class EggDecorator extends BattercakeDecorator {
    public EggDecorator(Battercake battercake) {
        super(battercake);
    }


    @Override
    protected String getMsg() {
        return super.getMsg() + "+1个鸡蛋";
    }


    @Override
    protected int getPrice() {
        return super.getPrice() + 2;
    }
}